package com.cangxuan.backend.dao;

import com.cangxuan.backend.entity.Registration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * registration表操作接口
 */
@Mapper
public interface IRegistrationDao {


    List<Registration> selectRegistrationsByGoodsId(int goodsId);

    int updateCount(@Param("id") Integer id,@Param("buyerId") Integer buyerId);

    Registration selectBuyerIdById(int id);

    int unlockBuyerId(int id);

    int updateForCancelPay(int id);

    Registration selectById(int id);
}
